<?php

return [

    'system' => [
        'parameterInvalid' => ['message' => '参数不正确', 'code' => 00002],
    ],

    'database' => [
        'connect' => ['message' => '数据库连接错误', 'code' => 1045],
        'databaseExists' => ['message' => '数据库已存在', 'code' => 1007],
    ],

    'user' => [
        'loginRequired' => ['message' => '请填写登录信息', 'code' => 10000],
        'passwordRequired' => ['message' => '请输入密码', 'code' => 10001],
        'userExists' => ['message' => '用户已存在', 'code' => 10002],
        'wrongPassword' => ['message' => '密码错误', 'code' => 1003],
        'notFound' => ['message' => '不存在该用户', 'code' => 1004],
        'notActivatedException' => ['message' => '该用户未激活', 'code' => 1005],
    ],

    'model' => [
        'add' => ['message' => '添加模型出错', 'code' => 20001],
        'delete' => ['message' => '删除模型出错', 'code' => 20002],
        'update' => ['message' => '更新模型出错', 'code' => 20003],
        'noFound' => ['message' => '未找到该模型', 'code' => 20004],
    ],

    'field' => [
        'add' => ['message' => '添加字段出错', 'code' => 30001],
        'delete' => ['message' => '删除字段出错', 'code' => 30002],
        'update' => ['message' => '更新字段出错', 'code' => 30003],
        'noFound' => ['message' => '未找到该字段', 'code' => 30004],
    ],

    'category' => [
        'add' => ['message' => '添加栏目出错', 'code' => 40001],
        'delete' => ['message' => '删除栏目出错', 'code' => 40002],
        'update' => ['message' => '更新栏目出错', 'code' => 40003],
        'noFound' => ['message' => '未找到该栏目', 'code' => 40004],
    ],

    'document' => [
        'add' => ['message' => '添加文档出错', 'code' => 50001],
        'delete' => ['message' => '删除文档出错', 'code' => 50002],
        'update' => ['message' => '更新文档出错', 'code' => 50003],
        'noFound' => ['message' => '未找到该文档', 'code' => 50004],
    ],

];